package com.cy;

import com.cy.pj.sys.service.realm.ShiroUserRealm;
import org.apache.shiro.realm.Realm;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;

@EnableAsync//启动异步操作
@SpringBootApplication
public class DbpmsApplication {

    public static void main(String[] args) {
        SpringApplication.run(DbpmsApplication.class, args);
    }
    @Bean
    public Realm realm() {
        return new ShiroUserRealm();
    }


}
